package com.ubs.training.server.aop;

import com.ubs.training.prod.server.service.LoggingService;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * User: xubuntu
 * Date: 8/24/12
 * Time: 3:31 AM
 * To change this template use File | Settings | File Templates.
 */
@Aspect
@Component
public class LoggingAdvice extends AbstractLoggingAdvice {

    @After("execution(* *.save*(..)) && args(obj2save)")
    public void processSave(Object obj2save) {
      svc.logEvent("AOP save advice!!! " + obj2save.toString());
    }

}
